package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.core.domain.entity.SysMenu;
import com.ruoyi.system.service.ISysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MrCustomAlarmsMapper;
import com.ruoyi.system.domain.MrCustomAlarms;
import com.ruoyi.system.service.IMrCustomAlarmsService;

/**
 * 自定义报警列配置Service业务层处理
 *
 * @author lsw
 * @date 2024-01-20
 */
@Service
public class MrCustomAlarmsServiceImpl implements IMrCustomAlarmsService
{
    @Autowired
    private MrCustomAlarmsMapper mrCustomAlarmsMapper;

    /**
     * 查询自定义报警列配置
     *
     * @param id 自定义报警列配置主键
     * @return 自定义报警列配置
     */
    @Override
    public MrCustomAlarms selectMrCustomAlarmsById(Long id)
    {
        return mrCustomAlarmsMapper.selectMrCustomAlarmsById(id);
    }

    /**
     * 查询自定义报警列配置列表
     *
     * @param mrCustomAlarms 自定义报警列配置
     * @return 自定义报警列配置
     */
    @Override
    public List<MrCustomAlarms> selectMrCustomAlarmsList(MrCustomAlarms mrCustomAlarms)
    {
        return mrCustomAlarmsMapper.selectMrCustomAlarmsList(mrCustomAlarms);
    }

    /**
     * 新增自定义报警列配置
     *
     * @param mrCustomAlarms 自定义报警列配置
     * @return 结果
     */
    @Override
    public int insertMrCustomAlarms(MrCustomAlarms mrCustomAlarms)
    {
        return mrCustomAlarmsMapper.insertMrCustomAlarms(mrCustomAlarms);
    }

    /**
     * 修改自定义报警列配置
     *
     * @param mrCustomAlarms 自定义报警列配置
     * @return 结果
     */
    @Override
    public int updateMrCustomAlarms(MrCustomAlarms mrCustomAlarms)
    {
        return mrCustomAlarmsMapper.updateMrCustomAlarms(mrCustomAlarms);
    }

    /**
     * 批量删除自定义报警列配置
     *
     * @param ids 需要删除的自定义报警列配置主键
     * @return 结果
     */
    @Override
    public int deleteMrCustomAlarmsByIds(Long[] ids)
    {
        return mrCustomAlarmsMapper.deleteMrCustomAlarmsByIds(ids);
    }

    /**
     * 删除自定义报警列配置信息
     *
     * @param id 自定义报警列配置主键
     * @return 结果
     */
    @Override
    public int deleteMrCustomAlarmsById(Long id)
    {
        return mrCustomAlarmsMapper.deleteMrCustomAlarmsById(id);
    }
}

